<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  if ($messageStack->size('header') > 0) {
    echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';
  }
?>

<div id="header" class="grid_24">
  <div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME, 477, 86) . '</a>'; ?></div>
	
  <div id="headerShortcuts">
<?php /*
  echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) .
       tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) .
       tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

  if (tep_session_is_registered('customer_id')) {
    echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL'));
  }*/
?>
	
	
	<div class="search">
	 

	
	</div>	
  </div>	

<!--<script type="text/javascript">
  $("#headerShortcuts").buttonset();
</script>-->

</div>
<?php /*
<div class="menu_main">
	<ul class="ul_mn_main">
		<li><a href="<?php echo HTTP_SERVER ?>" title="">trang chủ</a></li>

		<li><a style="position:relative; padding-right:30px;" href="<?php echo tep_href_link(FILENAME_ALL_PRODUCT) ?>" title="">sản phẩm<span style="position:absolute; right:5px;"> <img src="./imgs/hot.gif" width="29" height="18"></span></a></li>

		<li><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART) ?>" title="">Giỏ hàng</a></li>

		<li><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING) ?>" title="">Tính tiền</a></li>

		<li><a href="<?php echo tep_href_link(FILENAME_ACCOUNT) ?>" title="">Tài khoản</a></li>

		<li><a href="<?php echo tep_href_link(FILENAME_SHIPPING) ?>" title="">Hướng dẫn mua hàng</a></li>

		<li><a href="<?php echo tep_href_link(FILENAME_CONTACT_US) ?>" title="">liên hệ</a></li>

	</ul>
	
</div> */ ?>

<div id="wrapper">
<div class="lightmenu">
  <ul class="lightBlue" id="one">
    <li <?php if ($MenuIndex == 1) { echo 'class="current"';} ?>><a href="<?php echo HTTP_SERVER ?>"><b>Trang chủ</b></a></li>
    <li <?php if ($MenuIndex == 2) { echo 'class="current"';} ?>><a href="<?php echo tep_href_link(FILENAME_ALL_PRODUCT) ?>"><b>Sản phẩm</b></a></li>
    <li <?php if ($MenuIndex == 3) { echo 'class="current"';} ?>><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART) ?>"><b>Giỏ hàng</b></a></li>	
    <li <?php if ($MenuIndex == 4) { echo 'class="current"';} ?>><a href="<?php echo tep_href_link(FILENAME_ACCOUNT) ?>"><b>Tài khoản</b></a></li>
    <li <?php if ($MenuIndex == 5) { echo 'class="current"';} ?>><a href="<?php echo tep_href_link(FILENAME_SHIPPING) ?>"><b>Hướng dẫn mua hàng</b></a></li>
	<li <?php if ($MenuIndex == 6) { echo 'class="current"';} ?>><a href="<?php echo tep_href_link(FILENAME_CONTACT_US) ?>"><b>Liên hệ</b></a></li>
  </ul>
  <div class="searchbox">	
	<?php		
		$SearchForm = 	tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') .						
						tep_draw_input_field('keywords', 'Nhập từ khóa tìm kiếm...', 
						'class="lightsearch"'.
						"onblur='" . 
						'if(this.value=="") this.value="Nhập từ khóa tìm kiếm...";' . "'" . 
						"onfocus='". 
						'if(this.value=="Nhập từ khóa tìm kiếm...") this.value=""' . "'" ,'text'). 
						/*tep_draw_input_field('','&nbsp;','class="btn_s"','submit').*/
						'</form>';
		echo $SearchForm;
		
		
?>	
  </div>
</div>
</div>
<div style="float:left;height:5px;width:1020px"></div>

<?php
  if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerError">
    <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
  </tr>
</table>
<?php
  }

  if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerInfo">
    <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
  </tr>
</table>
<?php
  }
?>